package com.xin.libandroidpaysocial;

import android.app.Dialog;
import android.content.Context;

import com.android.tu.loadingdialog.LoadingDailog;

public class Loading {
    /**
     * 整个网络加载的进度条
     * @param context
     * @return
     */
    public static Dialog showProgressDialog(Context context) {
        LoadingDailog.Builder loadBuilder = new LoadingDailog.Builder(context)
                .setMessage("加载中...")
                .setCancelable(true)
                .setCancelOutside(true);
        LoadingDailog dialog = loadBuilder.create();
        dialog.show();
        return dialog;
    }
}
